import env
import mcrud
import ampractice
import amauth
import mauth
import snowflake
import amuserdetail
import amstudent

# env.load("product.env")
env.load(".env")
db = mcrud.new_env()

amstudent.init_table_student(db)
amstudent.init_table_record(db)

# role = mauth.role.get_by_name(db, "admin")
# print(role)
#
# course_list_id = snowflake.idstr()
# # mauth.auth.add(db, course_list_id, "/student/course_list", "课程列表")
# mauth.auth.add(db, course_list_id, "/student/record_add", "添加上课记录")
# mauth.roleauth.add(db, snowflake.idstr(), role.get("id"), course_list_id)
